import request from '../../utils/request'
const apiHeader = 'apiManage'

// 查詢项目分组成员列表
export function selectGroupMemberList(data, projectGroupId) {
  return request({
    url: `${apiHeader}/ApiProjectGroupMember/selectListByProjectGroupId?projectGroupId=${projectGroupId}`,
    method: 'post',
    data: data
  })
}
// 新增分组成员
export function insertGroupMemberByBatch(data) {
  return request({
    url: `${apiHeader}/ApiProjectGroupMember/insertByBatch`,
    method: 'post',
    data: data
  })
}
// 编辑分组成员
export function updateGroupMember(data, id) {
  return request({
    url: `${apiHeader}/ApiProjectGroupMember/` + id,
    method: 'put',
    data: data
  })
}
// 强制删除分组成员
export function deleteForceGroupMemberByBatch(data) {
  return request({
    url: `${apiHeader}/ApiProjectGroupMember/deleteForceByBatch`,
    method: 'delete',
    data: data
  })
}
// 查询项目成员列表
export function selectProjectMemberList(data, projectId) {
  return request({
    url: `${apiHeader}/ApiProjectMember/selectListByProjectId?projectId=${projectId}`,
    method: 'post',
    data: data
  })
}
// 新增项目成员
export function insertProjectMemberByBatch(data) {
  return request({
    url: `${apiHeader}/ApiProjectMember/insertByBatch`,
    method: 'post',
    data: data
  })
}
// 编辑项目成员
export function updateProjectMember(data, id) {
  return request({
    url: `${apiHeader}/ApiProjectMember/` + id,
    method: 'put',
    data: data
  })
}
// 强制删除项目成员
export function deleteForceProjectMemberByBatch(data) {
  return request({
    url: `${apiHeader}/ApiProjectMember/deleteForceByBatch`,
    method: 'delete',
    data: data
  })
}
